package org.verwandlung.voj.web.model;

public class ClassModel {
    
	public ClassModel() { }
	
	public ClassModel(String name, String term, String lessonId, String lessonNum, String lessonName, String teacherName, String studentsCode, String studentsName, String studentsClass) {
		this.name = name;
        this.term = term;
        this.lessonId = lessonId;
        this.lessonNum = lessonNum;
        this.lessonName = lessonName;
        this.teacherName = teacherName;
        this.studentsCode = studentsCode;
        this.studentsName = studentsName;
        this.studentsClass = studentsClass;
	}

	public ClassModel(long cmid, String name, String term, String lessonId, String lessonNum, String lessonName, String teacherName, String studentsCode, String studentsName, String studentsClass) {
		this(name, term, lessonId, lessonNum, lessonName, teacherName, studentsCode, studentsName, studentsClass);
		this.cmid = cmid;
	}

    public String toString() {
        return String.format("{ cmid: %d, name: %s }", cmid, name);        
    }

    public long getCmid(){
        return cmid;
    }
	public String getName(){
        return name;
    }
	public String getTerm(){
        return term;
    }
    public String getLessonId(){
        return lessonId;
    }
    public String getLessonNum(){
        return lessonNum;
    }
    public String getLessonName(){
        return lessonName;
    }
    public String getTeacherName(){
        return teacherName;
    }
    public String getStudentsCode(){
        return studentsCode;
    }
    public String getStudentsName(){
        return studentsName;
    }
    public String getStudentsClass(){
        return studentsClass;
    }

    private long cmid;
	private String name;
	private String term;
    private String lessonId;
    private String lessonNum;
    private String lessonName;
    private String teacherName;
    private String studentsCode;
    private String studentsName;
    private String studentsClass;
}
